<?php
	if(is_array($_POST['discount_id'])) {
		$discount_id = $_POST['discount_id'];
		$sql = "DELETE FROM `tbl_product_discount`  WHERE `discount_id` IN (". implode (',',$discount_id) .")";
	} else { 
		$discount_id = $params[3]; 
		$sql = "DELETE FROM `tbl_product_discount`  WHERE `discount_id` = '$discount_id' LIMIT 1"; 
	}
	mysql_query($sql);
	exit;
?>